




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/16/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfappointtask.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfappointtask.entity.YfAppointTask;
import com.application.yfappointtask.struts.form.YfAppointTaskForm;
import com.application.yfappointtask.dao.YfAppointTaskDAO;
 /**
 * 
 * Description:YfAppointTaskService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 02/16/2012 
 * 
 */
public class YfAppointTaskService extends BaseService
{
	private YfAppointTaskDAO yfAppointTaskDAO;

	public YfAppointTaskDAO getYfAppointTaskDAO() {
		return this.yfAppointTaskDAO;
	}

	public void setYfAppointTaskDAO(YfAppointTaskDAO yfAppointTaskDAO) {
		this.yfAppointTaskDAO = yfAppointTaskDAO;
	}
        

        public YfAppointTask getYfAppointTask(YfAppointTask yfAppointTask) {
		return (YfAppointTask) this.getBaseDao().queryByPk(yfAppointTask, yfAppointTask.getId());
	}
	
	public Integer getAllCountYfAppointTask(YfAppointTaskForm yfAppointTaskForm){
		return this.yfAppointTaskDAO.getAllCountYfAppointTask(yfAppointTaskForm);
	}
	
	public List<YfAppointTask> searchYfAppointTask(YfAppointTaskForm yfAppointTaskForm, PageBean pageBean) throws Exception {
		List<YfAppointTask> yfAppointTaskList = (List) this.yfAppointTaskDAO.searchYfAppointTask(yfAppointTaskForm, pageBean);
		return yfAppointTaskList;
	}
        
        public void deleteYfAppointTasks(YfAppointTaskForm yfAppointTaskForm){
	   this.yfAppointTaskDAO.deleteYfAppointTasks(yfAppointTaskForm);	 
	}
}
